package top.bulk.sql.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.bulk.sql.interceptor.BulkMybatisSqlPrintInterceptor;

/**
 * MyBatis 的一些配置
 *
 * @author 散装java
 * @date 2024-07-31
 */
@Configuration
@MapperScan("top.bulk.sql.test.mapper")
public class MyBatisConfig {
    /**
     * 自定义的 MyBatis 拦截器
     */
    @Bean
    public BulkMybatisSqlPrintInterceptor bulkMybatisSqlPrintInterceptor() {
        return new BulkMybatisSqlPrintInterceptor();
    }
}
